package app.softtech.freechat.database;

import org.json.JSONObject;

import android.content.ContentValues;

public class DatabaseGroup {

	private int mGroupId;
	private int mUserId;
	private String mGroupName;
	
	public DatabaseGroup(int mGroupId, int mUserId, String mGroupName) {
		super();
		this.mGroupId = mGroupId;
		this.mUserId = mUserId;
		this.mGroupName = mGroupName;
	}
	
	public DatabaseGroup(JSONObject obj){
		
	}
	public DatabaseGroup() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public int getGroupId() {
		return mGroupId;
	}
	public void setGroupId(int mGroupId) {
		this.mGroupId = mGroupId;
	}
	public int getUserId() {
		return mUserId;
	}
	public void setUserId(int mUserId) {
		this.mUserId = mUserId;
	}
	public String getGroupName() {
		return mGroupName;
	}
	public void setGroupName(String mGroupName) {
		this.mGroupName = mGroupName;
	}
	
	/**
	 *  get all values of Group
	 */
	public ContentValues getValuesDatabaseGroup(){
		ContentValues values = new ContentValues();
		
		values.put(ConstantsDB.GROUP_ID, this.getGroupId());
		values.put(ConstantsDB.USER_ID, this.getUserId());
		values.put(ConstantsDB.GROUP_NAME, this.getGroupName());
		
		return values;
	}
	
	
	public String toJsonString(){
		return mGroupName;
		
	}
}
